package wudl.bigdata.db.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import wudl.bigdata.db.bean.UserInfo;
import wudl.bigdata.db.service.impl.UserInfoServiceImpl;

import java.util.List;

/**
 * @Author: wudl
 * @Description:
 * @ClassName: UserController
 * @Date: 2023/5/28 15:50
 */
@RestController
public class UserController {

    @Autowired
    UserInfoServiceImpl  userInfoService;

    @GetMapping("/getUser")
    public List<UserInfo> getUser()
    {
        List<UserInfo> list = userInfoService.list();
        return  list;
    }

}
